<script setup lang="ts">
import { reqLogin } from '@/api/user'

const onclick = async () => {
  const result = await reqLogin({
    username: 'admin',
    password: '111111'
  })
  ElMessage.success('登录成功')
  console.log(result)
}
</script>

<template>
  <div>
    <el-button type="primary" @click="onclick">点击登录</el-button>
  </div>
</template>

<style scoped></style>
